package org.dtrd.modules.record.entity.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.dtrd.modules.record.config.SugarConfig.UplowType;

/**
 * @Author: QR
 * @Date: 2021/10/20-10:56
 */
@ApiModel("上下限信息")
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ValueUplowBean {

    @ApiModelProperty(value = "患者id", required = true)
    private Integer patientId;

    @ApiModelProperty("医生id, 非必须")
    private Integer doctorId;

    @ApiModelProperty("凌晨血糖值上限")
    private Float upperValueWeeHours= UplowType.WEE_HOURS.getDefaultLimitUp();
    @ApiModelProperty("凌晨血糖值下限")
    private Float lowerValueWeeHours=UplowType.WEE_HOURS.getDefaultLimitLow();

    @ApiModelProperty("空腹血糖值上限")
    private Float upperValueLimosis = UplowType.LIMOSIS.getDefaultLimitUp();
    @ApiModelProperty("空腹血糖值下限")
    private Float lowerValueLimosis = UplowType.LIMOSIS.getDefaultLimitLow();

    @ApiModelProperty("餐后血糖值上限")
    private Float upperValueAfterMeal = UplowType.AFTER_MEAL.getDefaultLimitUp();
    @ApiModelProperty("餐后血糖值下限")
    private Float lowerValueAfterMeal = UplowType.AFTER_MEAL.getDefaultLimitLow();

    @ApiModelProperty("睡前血糖上限")
    private Float upperValueBeforeSleep = UplowType.BEFORE_SLEEP.getDefaultLimitUp();
    @ApiModelProperty("睡前血糖下限")
    private Float lowerValueBeforeSleep = UplowType.BEFORE_SLEEP.getDefaultLimitLow();

    @ApiModelProperty("餐前血糖上限")
    private Float upperValueBeforeMeal = UplowType.BEFORE_MEAL.getDefaultLimitUp();
    @ApiModelProperty("餐前血糖下限")
    private Float lowerValueBeforeMeal = UplowType.BEFORE_MEAL.getDefaultLimitLow();

    @ApiModelProperty("高压/收缩压上限")
    private Integer upperValueHighPressure = 120;
    @ApiModelProperty("高压/收缩压下限")
    private Integer lowerValueHighPressure = 100;

    @ApiModelProperty("低压/舒张压上限")
    private Integer upperValueLowPressure = 80;
    @ApiModelProperty("低压/舒张压下限")
    private Integer lowerValueLowPressure = 60;

    @ApiModelProperty("bmi上限")
    private Float upperValueBmi = 23.9f;
    @ApiModelProperty("bmi下限")
    private Float lowerValueBmi = 18.5f;

}
